package com.ruoyi.traces.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 trace_user_material
 *
 * @author ruoyi
 * @date 2023-02-09
 */
public class TraceUserMaterial extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String username;

    /**
     * 材料id
     */
    @Excel(name = "材料id")
    private String materialId;

    /**
     * 材料名称
     */
    @Excel(name = "材料名称")
    private String materialName;


    /**
     * 生产厂商
     */
    @Excel(name = "生产厂商")
    private String supplier;

    /**
     * 生产批次
     */
    @Excel(name = "生产批次")
    private String supplierBatch;

    /**
     * 条形码
     */
    @Excel(name = "条形码")
    private String barcode;

    /**
     * (0,生产中，1，已出售)
     */
    @Excel(name = "(0,生产中，1，已出售)")
    private Long status;

    /**
     * 0 未加工 1加工中 2加工完成
     */
    @Excel(name = "0 未加工 1加工中 2加工完成")
    private Long machingStatus;

    /**
     * 0 未出库 1已出库
     */
    @Excel(name = "0 未出库 1已出库")
    private Long outFactoryStatus;

    /**
     * 0 未填写 1已填写
     */
    @Excel(name = "0 未填写 1已填写")
    private Long productWriteStatus;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUsername() {
        return username;
    }

    public void setMaterialId(String materialId) {
        this.materialId = materialId;
    }

    public String getMaterialId() {
        return materialId;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    public void setMachingStatus(Long machingStatus) {
        this.machingStatus = machingStatus;
    }

    public Long getMachingStatus() {
        return machingStatus;
    }

    public void setOutFactoryStatus(Long outFactoryStatus) {
        this.outFactoryStatus = outFactoryStatus;
    }

    public Long getOutFactoryStatus() {
        return outFactoryStatus;
    }

    public void setProductWriteStatus(Long productWriteStatus) {
        this.productWriteStatus = productWriteStatus;
    }

    public Long getProductWriteStatus() {
        return productWriteStatus;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public String getSupplierBatch() {
        return supplierBatch;
    }

    public void setSupplierBatch(String supplierBatch) {
        this.supplierBatch = supplierBatch;
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("username", getUsername())
                .append("materialId", getMaterialId())
                .append("materialName", getMaterialName())
                .append("supplier", getSupplier())
                .append("supplierBatch", getSupplierBatch())
                .append("barcode", getBarcode())
                .append("status", getStatus())
                .append("machingStatus", getMachingStatus())
                .append("outFactoryStatus", getOutFactoryStatus())
                .append("productWriteStatus", getProductWriteStatus())
                .toString();
    }
}
